var obj = {
  name: "frank",
  age: 18,
};

// 禁止对象继续添加新的属性
Object.preventExtensions(obj);
obj.height = 1.88;
obj.address = "石家庄市";

console.log(obj);

// 禁止对象配置/删除里面的属性
Object.seal(obj);
delete obj.name;
console.log(obj);

// 让属性不可以修改
Object.freeze(obj);
obj.name = "kobe";
console.log(obj.name);
